package com.glsc.ngateway.common.api.flowable.dto.demand;

/**
 * @author lixing
 * 需求确认跳转条件
 */
public enum AdvanceFlag {


    /*需求确认转到高级审批*/
    Advance("1"),

    /*需求确认转到排期*/
    NOAdvance("0");


    private String nwCode;

    private AdvanceFlag(String nwCode) {
        this.nwCode = nwCode;
    }

    public String getNwCode() {
        return nwCode;
    }


    public static AdvanceFlag getAdvanceFlag(String nwcode) {
        for (AdvanceFlag advanceFlag : AdvanceFlag.values()) {
            if (advanceFlag.getNwCode().equalsIgnoreCase(nwcode)) {
                return advanceFlag;
            }
        }
        return null;
    }

}
